package com.gitee.magic.jdbc.persistence;

/**
 * ORM实体类工厂
 * @author zhenyao
 *
 */
public interface EntityFactory {

	/**
	 * 注册实体类到容器中
	 * 
	 * @param entity
	 */
	public void registerEntityDefinition(EntityObject entity);

	/**
	 * 获取实体类by Prototype
	 * 
	 * @param prototype
	 * @return
	 */
	public EntityObject getEntityDefinition(Class<?> prototype);
	
	/**
	 * 判断是否为ORM实体类
	 * @param prototype
	 * @return
	 */
	public Boolean isOrmEntity(Class<?> prototype);
	
}
